//
//  SyncMutableArray.h
//  BaoVn
//
//  Created by Phuong Le on 6/6/13.
//  Copyright (c) 2013 Phuong Le. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SyncMutableArray : NSObject
{
    NSMutableArray *_mutableArray;
}

#pragma mark - Property
- (NSUInteger)count;

#pragma mark - init
- (id)initWithArray:(NSMutableArray *)array;
#pragma mark - Object
- (id)objectAtIndex:(NSUInteger)index;

#pragma mark - Index
- (NSUInteger)indexOfObject:(id)anObject;

#pragma mark - Insert
- (void)addObject:(id)anObject;
- (void)insertObject:(id)anObject atIndex:(NSUInteger)index;

#pragma mark - Replace
- (void)replaceObjectAtIndex:(NSUInteger)idx withObject:(id)object;

#pragma mark - Remove
- (void)removeAllObjects;
- (void)removeObject:(id)anObject;
- (void)removeObjectAtIndex:(NSUInteger)index;

@end
